package org.yty.travelagencymongodb.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.yty.travelagencymongodb.model.Entity.TourGroupTraveller;

public interface TourGroupTravellerRepository extends MongoRepository<TourGroupTraveller,Long> {
    void deleteByTourGroupId(Long tourGroupId);

    void deleteByTravellerId(Long travellerId);

    void deleteByTourGroupIdAndTravellerId(Long tourGroupId, Long travellerId);
}
